/**
 * Created By WangZhiHao
 */
const { ccclass, property } = cc._decorator;

@ccclass
export default class Main extends cc.Component {

    start() {
        this.init();
    }
    public init(): void {
        TableManager.instance.parseTable(this.enterGame);
    }

    private enterGame(): void {
        var dict: Object = TableManager.instance.getTxtTables(Tables.Test1CFG);
        console.log(dict);
        var testCFG: TestCFG = TableManager.instance.getTxtTable(Tables.TestCFG, 11101011);
        console.log(testCFG);
        cc.director.loadScene("Scene/helloworld");
    }
}